package day12;

import java.io.IOException;
import java.io.InputStream;
import java.net.Socket;

/**
 * @author oldliu
 * @since 1.0
 */
public class GetFile {
    public static void main(String[] args) {
        try {
            Socket s = new Socket("localhost", 9996);
            InputStream in = s.getInputStream();
            //avaiable不可用
            System.out.println(in.available()+"??????????????????");
            s.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
